{
	var evens = [1,2,3,4,5];
	var odds =  evens.map(function(v){
		return v+1
	}) 
	console.log(odds,evens)
}

{
	//es6
	let events = [1,2,3,4,5];
	let odds = events.map(v => v + 1 )
	console.log(odds,events)
}

{
	var factory = function(){
		this.a = 'a';
		this.b = 'b';
		this.c = {
			a:'a+',
			b:function(){
				return this.a
			}
		}
	}
	console.log(new factory().c.b())
}

{
	var factory = function(){
		this.a = 'a';
		this.b = 'b';
		this.c = {
			a:'a+',
			b:()=>this.a
		}
	}
	console.log(new factory().c.b())
}